﻿namespace Shop.Model.View.Admin.User;

public class OldUserListVo
{
    private string _Grade;
    
    public long Id { get; set; }
    
    /// <summary>
    /// 用户Code
    /// </summary>
    public int Code { get; set; }
    
    /// <summary>
    /// 用户昵称
    /// </summary>
    public string Nickname { get; set; }
    
    /// <summary>
    /// 用户手机号
    /// </summary>
    public string Tele { get; set; }
    
    /// <summary>
    /// 用户级别
    /// </summary>
    public string OldGrade { get; set; }

    public string Grade
    {
        get
        {
            return _Grade = OldGrade switch
            {
                "0" => "普通用户",
                "1" => "V0",
                "2" => "V1",
                "3" => "V2",
                "4" => "V3",
                "5" => "V4",
                "6" => "V5",
                _ => "级别错误",
            };
        }
        set
        {
            _Grade = value;
        }
    }
}